# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:  Exp $

NEED_PYTHON="2.3"

inherit distutils

DESCRIPTION="cross-platform Bluetooth API for Python"
HOMEPAGE="http://lightblue.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="examples"

DEPEND=">=dev-python/pybluez-0.9
	>=dev-libs/openobex-1.3"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}-${PV}"

PYTHON_MODNAME="lightblue"

src_install() {
	distutils_src_install

	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		doins -r examples/* || die "doins failed"
	fi
}